var t = new(require("../../../utils/http").HTTP);
Page({
    data: {
        selected: [!1, !1, !1, !1, !1, !1, !1, !1, !1],
        actives: null
    },
    onLoad: function () {
        var e = this,
        a = wx.getStorageSync("user");
        t.request({
            url: "https://www.qlsyyun.com:3030/clock/get",
            data: {
                arr: 2,
                zsy: a[0]
            }
        }).then((function (t) {
                0 == t.data.length ? wx.showToast({
                    title: "暂无积分统计",
                    icon: "none",
                    duration: 500,
                    success: function () {
                        setTimeout((function () {
                                wx.navigateBack({
                                    delta: 1
                                })
                            }), 500)
                    }
                }) : e.setData({
                    list: t.data
                })
            })),
        t.request({
            url: "https://www.qlsyyun.com:3030/clock/get",
            data: {
                arr: 1,
                zsy: a[0]
            }
        }).then((function (t) {
                e.setData({
                    source: t.data[0].jifen
                })
            }))
    },
    previewImage: function (t) {
        var e = t.currentTarget.dataset.src;
        wx.previewImage({
            urls: [e]
        })
    }
});
